package com.study.spaoplog.config;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @author study
 * @version 1.0
 * @date 2021/6/9 10:11
 */
@Component
public class TestAnnotationPreDestroy {

    @PreDestroy
    public void destory() {
        System.out.println(StringUtils.center("我被销毁了、、、、、我是用的@PreDestory的方式、、、、、、", 51, "*"));
    }
}
